import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import App01 from "../01-useState自动推导";
import App02 from "../02-useState泛型参数";
import App03 from "../03-useState初始值为null";
import App04 from "../04-Props与Ts基础使用";
import App05 from "../05-Props与Ts特殊的children属性";
import App06 from "../06-Props与Ts为事件prop添加类型";
import App07 from "../07-useRef与Ts";

const router = createBrowserRouter([
  {
    path: "/",
    element: <App />
  },
  {
    path: "/app01",
    element: <App01 />
  },
  {
    path: "/app02",
    element: <App02 />
  },
  {
    path: "/app03",
    element: <App03 />
  },
  {
    path: "/app04",
    element: <App04 />
  },
  {
    path: "/app05",
    element: <App05 />
  },
  {
    path: "/app06",
    element: <App06 />
  },
  {
    path: "/app07",
    element: <App07 />
  }

])

export default router